<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/14
 * Time: 9:32
 */

include_once '../tools/DbTools.php';
session_start();
$token=$_COOKIE['Token'];
$username=$_SESSION[$token]['uesrname'];

$sql="select CardMoney from bankcard where CardNo='".$username."'";

DbTools::InitDb();
$result=DbTools::select($sql);
$CardMoney=$result[0]['CardMoney'];

?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户中心</title>
</head>
<body>
<form action="transfer_Action.php" method="post">
    当前余额：<input type="text" name="now_money" id="" value="<?php echo $CardMoney ?>" readonly="readonly" disabled="disabled" /><br />
    请输入被转帐卡号：<input type="text" name="take_Card" id="" value="" />
    转账金额： <input type="text" name="give_money" id="" value="" />
    <br />
    <input type="submit" value="提交"/>
</form>

</body>
</html>

